package com.lin.cms.service;

import java.util.List;

import com.lin.cms.criteria.ModelCriteria;
import com.lin.cms.domain.Model;

public interface ModelService{
	
	Model selectByPrimaryKey(Integer modelId);
	
	List<Model> selectByCriteria(ModelCriteria criteria);
	
	int deleteByPrimaryKey(Integer modelId);
	
	int deleteByCriteria(ModelCriteria criteria);
	
	int insert(Model model);
	
	int updateByPrimaryKeySelective(Model model);
	
	int updateByPrimaryKey(Model model);
	
	List<Model> selectByPage(ModelCriteria criteria);
	
	int countByCriteria(ModelCriteria criteria);
	
	/**
	 * 获得模型列表
	 * 
	 * @param containDisabled
	 *            是否所有模型（即包含禁用模型）
	 * @return
	 */
	public List<Model> getList(boolean containDisabled);

	
}
